<template>
  <div class="welcome-page">
    <h1>欢迎使用智能冯坤数据录入系统</h1>
    <div class="button-container">
      <!-- TPA 录入按钮 -->
      <el-button type="primary" @click="goToTPAEntry">TPA 录入</el-button>
      <!-- 待开发按钮 -->
      <el-button disabled>安城（待开发）</el-button>
      <el-button disabled>待开发</el-button>
      <el-button disabled>待开发</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: 'WelcomePage',
  methods: {
    goToTPAEntry() { 
      // 使用 Vue Router 进行路由跳转
      this.$router.push('/tpa/data-entry');
    },
  },
};
</script>

<style scoped>
.welcome-page {
  text-align: center;
  padding: 50px;
}

.button-container {
  margin-top: 20px;
}

.el-button {
  margin: 0 10px;
}
</style>